/*
  * @file TxtFileWriter.cpp
  * @author Thibault Merle et Guillaume Poussel
  */
#include <fstream>

#include "base/point_list.h"
#include "io/TxtFileWriter.h"

void TxtFileWriter::write(const point_list , const point_list hull) const {
  std::ofstream out(_filename, std::ios::out);
  for (point_list::const_iterator it = hull.begin(); it != hull.end(); ++it) {
    out << (*it)->x() << ' ' << (*it)->y() << std::endl;
  }
}
